#ifndef __PHOTO_MANAGER_H__
#define __PHOTO_MANAGER_H__
#include <config.h>

typedef struct imageInfo
{
	int isBMP;
	int width;
	int height;
	int iBpp;
	unsigned char *imageDataBuff;
}T_imageInfo, *PT_imageInfo;

typedef struct PhotoOpr
{
	char *name;
	int (*isSupport)(char *filename);
	int (*getDispData)(char *filename, PT_imageInfo image);
	struct PhotoOpr *next;
}T_PhotoOpr, *PT_PhotoOpr;

typedef struct touchInfo
{
	int xMin;
	int xMax;
	int yMin;
	int yMax;
	char icon[ICONNAMESIZE];
}T_touchInfo, *PT_touchInfo;

typedef struct iconInfo
{
	int xStart;
	int yStart;
	char icon[ICONNAMESIZE];
}T_iconInfo, *PT_iconInfo;

int registerPhotoOpr(PT_PhotoOpr g_ptPhotoOpr);
void showPhotoOpr(void);
int initPhotoOpr(void);
int getPhotoData(char *filename, PT_imageInfo image);
int showImage(int x, int y, PT_imageInfo imageData);

int bmpInit(void);
int jpegInit(void);
int pngInit(void);


#endif

